#include "submit-3AddBeforeQuery.h"
#include "RTree.h"
#include "Polygon.h"

using namespace std;

void SetEnvironmentFromAddBeforeQuery() {

}

void AddPointFromAddBeforeQuery(int id, double x, double y) {
	AddPoint(id, x, y);
}

void AddPolygonFromAddBeforeQuery(int id, int n, std::vector<std::pair<double, double> > &polygon) {
	AddPolygon(id, n, polygon);
}

std::vector<int> QueryPointFromAddBeforeQuery(double x, double y) {
    return QueryPoint(x, y);
}

std::vector<int> QueryPolygonFromAddBeforeQuery(int n, std::vector<std::pair<double, double> > &polygon) {
    return QueryPolygon(n, polygon);
}
